package br.com.assemble.hermeserp.model.pojos.enderecamento;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import br.com.assemble.hermeserp.ejb.annotation.DaoClass;
import br.com.assemble.hermeserp.model.BasePojo;


/**
 * The persistent class for the LOGRADOUROS database table.
 * 
 */
@Entity
@Table(name="LOGRADOUROS")
@DaoClass(value="LogradouroDao", pu="hermes-pu")
public class Logradouro extends BasePojo implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="LOG_IDENTIFY", unique=true, nullable=false)
	private BigInteger logIdentify;

	@Column(name="LOG_NOME", nullable=false, length=100)
	private String logNome;

	//bi-directional many-to-one association to Enderecamento
	@OneToMany(mappedBy="logradouro")
	private List<Enderecamento> enderecamentoCollection;

    public Logradouro() {
    }

	public BigInteger getLogIdentify() {
		return this.logIdentify;
	}

	public void setLogIdentify(BigInteger logIdentify) {
		this.logIdentify = logIdentify;
	}

	public String getLogNome() {
		return this.logNome;
	}

	public void setLogNome(String logNome) {
		this.logNome = logNome;
	}

	public List<Enderecamento> getEnderecamentoCollection() {
		return this.enderecamentoCollection;
	}

	public void setEnderecamentoCollection(List<Enderecamento> enderecamentoCollection) {
		this.enderecamentoCollection = enderecamentoCollection;
	}
	
}